package pers.archives.auth.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;
import pers.archives.auth.service.RoleService;
import pers.archives.common.constant.ResponseConstant;
import pers.archives.common.entity.Role;
import pers.archives.common.ov.common.CommonResponse;
import pers.archives.common.ov.common.ResponseCode;

/*
 *@program:archives-parent
 *@author: 赵浩浩
 *@Time: 2020/9/30  16:29
 */
@RestController
public class RoleController {

    @Autowired
    private RoleService roleService;

    @PostMapping("addRole")
    public CommonResponse<String> addRole(){
        roleService.addRole(null);
        return new CommonResponse<String>(ResponseCode.HOME_GET_MENU_INFO, "添加成功");
    }
}
